package com.example.customclassloader.service;

import com.example.customclassloader.entity.Teacher;
import com.example.customclassloader.mapper.TeacherMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xionglei
 * @version 1.0.0
 * 2021年08月23日 09:25
 */
@Service
public class TeacherService {

    @Autowired
    private TeacherMapper teacherMapper;

    public List<Teacher> getTeachers() {
        return teacherMapper.selectAll();
    }
}
